/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author Jawad
 */
@Entity
@Table(name = "Compte")
public class Compte implements Serializable {

    private Long numCompte;
    private String nom;
    private String prenom;
    private Long Solde;

    @Id
    @Column(name = "NUM_COMPTE", unique = true, nullable = false)
    public Long getNumCompte() {
        return numCompte;
    }

    public void setNumCompte(Long numCompte) {
        this.numCompte = numCompte;
    }

    @Column(name = "NOM")
    public String getNom() {
        return nom;
    }

    public void setNom(String nom) {
        this.nom = nom;
    }

    @Column(name = "PRENOM")
    public String getPrenom() {
        return prenom;
    }

    public void setPrenom(String prenom) {
        this.prenom = prenom;
    }

    @Column(name = "SOLDE")
    public Long getSolde() {
        return Solde;
    }

    public void setSolde(Long Solde) {
        this.Solde = Solde;
    }

    public Compte() {
    }

    public Compte(Long numCompte, String nom, String prenom, Long Solde) {
        this.numCompte = numCompte;
        this.nom = nom;
        this.prenom = prenom;
        this.Solde = Solde;
    }
    
}
